<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>minglie跨域测试</title>
	<script src="https://6d69-minglie-31e331-1302367385.tcb.qcloud.la/js/alert.js"></script>


	<style>
		button {
			width: 500px;
			height: 30px;
			margin-top: 10px;
		}
	</style>
</head>

<body>

	<button id="btn1">get1</button>
	<button id="btn2">postJson</button>
	<script>


        let po={};
        function ming(d){
           po=d;
		}

		let baseUrl = "http://server.com"

		
		btn1.onclick = function(){
			$.getJSON(`${baseUrl}/get1`).then(function (result) {
				console.log(result);
				btn1.innerHTML = JSON.stringify(result)
			});
		}

		btn2.onclick =function(){
			 console.log(po)
		}

	</script>

</body>

</html>


<script src="./position.js"></script>